import request from '@/utils/request.js'

// 分类导航数据接口
export function getCategoryList () {
  return request('/home/category/head', 'GET', 'data')
}

// 轮播图数据接口
export const findBanner = () => {
  return request('home/banner', 'get')
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const findNew = () => {
  return request('home/new', 'get')
}

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export const findHot = () => {
  return request('home/hot', 'get')
}
